package kcms.db;

// Generated Sep 18, 2015 4:49:32 PM by Hibernate Tools 4.0.0

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;
import org.springframework.stereotype.Component;

/**
 * Assignmentscore generated by hbm2java
 */
@Component
@Entity
@Table(name = "assignmentscore", catalog = "kcms")
public class Assignmentscore implements java.io.Serializable {

	private Integer assignmentid;
	private double score;
	private String pingyu;
	private boolean status;

	public Assignmentscore() {
	}

	public Assignmentscore(Integer assignmentid, boolean status, double score,
			String pingyu) {
		this.assignmentid=assignmentid;
		this.status=status;
		this.score = score;
		this.pingyu = pingyu;
	}
	@Id
	@Column(name = "assignmentid", nullable = false , unique = true)
	public Integer getAssignmentid() {
		return this.assignmentid;
	}

	public void setAssignmentid(Integer assignmentid) {
		this.assignmentid = assignmentid;
	}

	@Column(name = "status", nullable = true)
	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	@Column(name = "score", nullable = true, precision = 22, scale = 0)
	public double getScore() {
		return this.score;
	}

	public void setScore(double score) {
		this.score = score;
	}

	@Column(name = "pingyu", nullable = true)
	public String getPingyu() {
		return this.pingyu;
	}

	public void setPingyu(String pingyu) {
		this.pingyu = pingyu;
	}

}
